<div class="tableform">
      <table cellspacing="0" cellpadding="0" border="0" class="gridlist">
        <tr>
              <th>客户</th>
              <th>客户名称</th>
              <th>订单号</th>
              <th>AX订单号</th>
              <th>AX发货单号</th>
              <th>积分</th>
              <th>订单总额</th>
        </tr>
    <{assign var="key" value="0"}>
    <{assign var="sumscore" value="0"}>
      <{foreach from=$res item=his}>
      <{assign var="key" value=$key+1 }>
      <{assign var="sumscore" value=$sumscore+$his.score }>
      <tbody>
        <tr>
          <td><{$his.AXCustomer}></td>
          <td><{$his.customername}></td>
          <td><{$his.order_bn}></td>
          <td><{$his.axorderno}></td>
          <td><{$his.axshipno}></td>
          <td><{$his.score}></td>
          <td><{$his.total_amount}></td>
          </tr>
        </tbody>
      <{/foreach}>
        <tr>
          <td colspan="5">总数：<{$key}></td>
          <td><{$sumscore}></td>
        </tr>
      </table>
</div>